//
//  UITableViewCell+HDOwnerCellFather.m
//  app
//
//  Created by D on 15/7/15.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import "HDOwnerCellFather.h"

@implementation HDOwnerCellFather

-(void)drawRect:(CGRect)rect
{
    [self setBackgroundColor:[UIColor clearColor]];
//    [self drawBackground:rect color:[UIColor whiteColor]];
    if (self.tag == 6) {
      [self drawBackground:rect color:[UIColor clearColor]];
    }
    
//    [UIColor colorWithRed:224.0f/255.0f green:224.0f/255.0f blue:224.0f/255.0f alpha:1]
    if (self.tag == 0) {
        [self drawHorizonLineLeft:UF(0) right:UF(0) at:UP(0) color:[UIColor colorWithRed:224.0f/255.0f green:224.0f/255.0f blue:224.0f/255.0f alpha:1]];
        [self drawSeperatorLineLeft:UF(0) right:UF(0) color:[UIColor colorWithRed:224.0f/255.0f green:224.0f/255.0f blue:224.0f/255.0f alpha:1]];
        
        
    }else if (self.tag == 1){
        
        [self drawHorizonLineLeft:UF(0) right:UF(0) at:UP(0) color:[UIColor colorWithRed:224.0f/255.0f green:224.0f/255.0f blue:224.0f/255.0f alpha:1]];
        
        [self drawSeperatorLineLeft:UF(24) right:UF(0) color:[UIColor colorWithRed:224.0f/255.0f green:224.0f/255.0f blue:224.0f/255.0f alpha:1]];
    
    }else if (self.tag == 2){
        [self drawSeperatorLineLeft:UF(24) right:UF(0) color:[UIColor colorWithRed:224.0f/255.0f green:224.0f/255.0f blue:224.0f/255.0f alpha:1]];
        
    }else if (self.tag == 3)
    {
        [self drawSeperatorLineLeft:UF(24) right:UF(0) color:[UIColor colorWithRed:224.0f/255.0f green:224.0f/255.0f blue:224.0f/255.0f alpha:1]];
    }
    else if (self.tag == 4){
        [self drawSeperatorLineLeft:UF(0) right:UF(0) color:[UIColor colorWithRed:224.0f/255.0f green:224.0f/255.0f blue:224.0f/255.0f alpha:1]];
    }else if (self.tag == 5){
        [self drawHorizonLineLeft:UF(0) right:UF(0) at:UP(0) color:[UIColor colorWithRed:224.0f/255.0f green:224.0f/255.0f blue:224.0f/255.0f alpha:1]];
        
        [self drawSeperatorLineLeft:UF(0) right:UF(0) color:[UIColor colorWithRed:224.0f/255.0f green:224.0f/255.0f blue:224.0f/255.0f alpha:1]];
        
    }else if (self.tag == 6){
    
    }
    
    
}


@end
